package com.kurumi.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.kurumi.pojo.admin.AdminUser;

public interface AdminUserMapper {

	int deleteByPrimaryKey(Integer id);

	int insert(AdminUser record);

	int insertSelective(AdminUser record);

	AdminUser selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(AdminUser record);

	int updateByPrimaryKey(AdminUser record);

	AdminUser getUserByUsernameAndPassword(@Param("username")String username,@Param("password")String password);
	
	List<AdminUser> getUserByUsername(@Param("username")String username);

	List<AdminUser> getAllAdminUser(Map<String,Object> params);
}